package com.hrms.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hrms.dao.PayDao;
import com.hrms.pojo.Pay;
import com.hrms.service.PayService;
@Service("payService")
public class PayServiceImpl implements PayService{
	
	@Resource
	private PayDao payDao;
	
	@Override
	public List<Pay> selectAll() {
		return payDao.selectAll();
	}

	@Override
	public void insertPay(Pay pay) {
		payDao.insertPay(pay);
	}

	@Override
	public Pay selectById(int payId) {
		return payDao.selectById(payId);
	}

	@Override
	public List<Pay> selectByEmNumber(int payEmNumber) {
		return payDao.selectByEmNumber(payEmNumber);
	}

	@Override
	public List<Pay> selectByDate(String year, String month) {
		return payDao.selectByDate(year, month);
	}

	@Override
	public void deleteById(int payId) {
		payDao.deleteById(payId);
	}

	@Override
	public List<Pay> selectByPage(int pageIndex, int recordCount) {
		return payDao.selectByPage(pageIndex, recordCount);
	}

}
